I have actually known about that practice and thought the same as you - it's funny as hell. Why would you baptize dead people who were not inclined to join your religion when they were alive? Especially people who were horribly tormented because of their faith ( not LDS).
The LDS have a whole other level of crazy going on. Even if I am dead I might be upset if I became Mormon. 😀